|
ObjectiveLib
1.0.0
|
A protocol for writing to streams. More...
#import <ObjectiveLib/Streamable.h>

Public Member Functions | |
| (id) | - initWithObjectInStream: |
| Initialize the object. | |
| (void) | - writeSelfToStream: |
| Write the object to a stream. | |
A protocol for writing to streams.
For an object to be written to or read from a stream it must implement either the OLStreamable protocol or the NSCoding protocol. When an object is read from a stream the message initWithObjectInStream: (OLStreamable-p) is sent, which reads each of the object's instance variables and initializes the object. For writing, the message writeSelfToStream: (OLStreamable-p) is sent, which writes the instance variables.
| - (id) initWithObjectInStream: | (OLObjectInStream *) | stream |
Initialize the object.
Each instance variable is read from stream and all other initialization is performed.
| stream | the stream from which to read |
Reimplemented in OLBoolVector, OLPriorityQueue, OLText, OLDeque, OLHashMap, OLHashSet, OLMap, OLList, OLVector, OLSet, OLBitSet, OLQueue, OLStack, and OLPair.
| - (void) writeSelfToStream: | (OLObjectOutStream *) | stream |
|